<?php

require_once 'database.php';
require_once 'common.php';

$intStoryId = isset($_GET['id']) ?htmlspecialchars($_GET['id']) : 0;
	
//Get iterations for user
$arrTasks = array();

$dbResult = mysql_query("SELECT * FROM task WHERE story_id=$intStoryId")
or die("Problem reading table: " . mysql_error());

while($row = mysql_fetch_array($dbResult)){
	$objTask = array();
	$objTask['task_name'] = $row['task_name'];
	$objTask['task_id'] = $row['task_id'];
	$objTask['story_id'] = $row['story_id'];

	array_push($arrTasks, $objTask);
}